using TMPro;
using UnityEngine;
using UnityEngine.UI;

public class UI_ScrollSelectSlot : UI_ItemSelectBase
{
    [SerializeField] private Image _scrollIcon;
    [SerializeField] private TextMeshProUGUI _slotNameTMP;
    [SerializeField] private TextMeshProUGUI _scrollDescription;
    public SlotScorllDataSO CurrentScorllDataSO { get; private set; }

    public void SetupScrollSelectSlot(SlotScorllDataSO scorllDataSO)
    {
        CurrentScorllDataSO = scorllDataSO;

        _scrollIcon.sprite = CurrentScorllDataSO.scrollIcon;
        _slotNameTMP.text = CurrentScorllDataSO.scrollName;
        _scrollDescription.text = CurrentScorllDataSO.scrollDescription;

        _borderImage.enabled = false;
        _isSelect = false;
    }
}
